<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta content="always" name="referrer">
		<meta name="format-detection" content="telephone=no" />
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
		<title>本地林业机构</title>
		<link rel="stylesheet" href="/LianniuWeb/tea/css/reset.css">
		<link rel="stylesheet" href="/LianniuWeb/tea/views/organ/organ.css">
	</head>

	<body>
		<script type="text/javascript" src="/LianniuWeb/tea/js/flexible.js"></script>
		<script type="text/javascript" src="/LianniuWeb/tea/js/jquery-1.11.3.min.js"></script>
		<script type="text/javascript" src="/LianniuWeb/js/commons/commons.js"></script>
		<script type="text/javascript">
			var parentId = localStorage.getItem("parentId");
			$.ajax({
				type : "get",
				url : server_url + '/rest/areaManager/getByParent.do?ran='
						+ Math.random(),
				dataType : 'json',
				async : false,
				data : {
					token : token,
					parentId:parentId
				},
				success : function(result) {
					console.log(result);
					if (result.retCode == '0000') {
						var pros = result.data;
						var str = "";
						$.each(pros,function(i,n){
							str += '<div class="organ-normal"><span class="pro" code="'+n.areaCode+'">'+n.areaName+'</span></div>'
						});
						$("body").html(str);
					} else {
	
					}
				}
			});
			$(".pro").bind('click',function(){
				var areaCode = $(this).attr('code');
				localStorage.setItem("areaCode",areaCode);
				window.location=server_url+"organFor.do";
			});
		</script>
	</body>

</html>